<?php
    include("User.php");
	if($_POST['username']){
		$name=$_POST['username'];
		//$name='124';
		$user=User::getUserByName($name);
        if(empty($user))
           echo 0;
		else
           echo 1;
	}
?>